cmake_minimum_required ( VERSION 2.6 )
project ( webserver )

# Que deje los ejecutables en la carpeta "bin" al mismo nivel que "src"
set ( CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/../bin" )

# Copia los archivos necesarios para el funcionamiento del TP
file ( COPY ${CMAKE_SOURCE_DIR}/admin/MenuFinal.glade DESTINATION ${CMAKE_SOURCE_DIR}/../bin )
file ( COPY ${CMAKE_SOURCE_DIR}/admin/config.xml DESTINATION ${CMAKE_SOURCE_DIR}/../bin )
file ( COPY ${CMAKE_SOURCE_DIR}/admin/help.txt DESTINATION ${CMAKE_SOURCE_DIR}/../bin )
file ( COPY ${CMAKE_SOURCE_DIR}/admin/logoFiuba.gif DESTINATION ${CMAKE_SOURCE_DIR}/../bin )
file ( COPY ${CMAKE_SOURCE_DIR}/admin/MonsterV.png DESTINATION ${CMAKE_SOURCE_DIR}/../bin )

# El resto de los subdirectorios se añaden como librerias
add_subdirectory ( admin )
add_subdirectory ( server )
add_subdirectory ( server/http )
add_subdirectory ( common )
add_subdirectory ( common/ticpp )




